import { CreateDate, CreateUserId, Entity, PrimaryUuid, Remark, ShopOrderId, ShopOrderStatus, UpdateDate, ShopOrderAction, Code } from "@sker/core";

@Entity({ name: 'shop_order_log' })
export class OrderLog {

    @PrimaryUuid({
        primaryKeyConstraintName: "PK_SHOP_ORDER_LOG_ID"
    })
    id: string;

    @ShopOrderId()
    order_id: string;

    @CreateUserId({ comment: '操作人' })
    create_uid: string;

    @Code({ length: 20, default: '', nullable: true })
    type: string;

    @ShopOrderAction()
    action: string;

    @ShopOrderStatus()
    from: string;

    @ShopOrderStatus()
    to: string;

    @Remark({ comment: '操作说明' })
    remark: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}